<tr>
	<?php
	$loop = 0;
	foreach ($query->result() as $row):
	if($row->images_medium=="" || $row->images_medium==false){
		$images = $images = site_url("images/noimages.jpg");
	} else {
		$images = site_url(array('just4u','ImagesMedium','edisi',$row->id_edisi));
	}
	$loop++;
		if($loop % 7==1){
				echo "</tr><tr>";
			}
	?>	
	 <td align="center" valign="top">
	 <a href="<?php echo site_url(array('just4u','content_edisi',$row->ke,'sajian-utama'))?>">
	 <img class="picture" src="<?php echo $images?>" /></a><br />
	 <a href="<?php echo site_url(array('just4u','content_edisi',$row->ke))?>"><?php echo $row->ke ?></a><br /><br />
	</td>
	<?php endforeach ?> 
</tr>